﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ScheduleMaker
{
    public partial class smAdminSubjectAddHour : Form
    {
        public int numberHours { get; set; }

        /*
        public smAdminSubjectAddHour()
        {
            InitializeComponent();
            //this.numberHours = 0;
            this.nud.Value = 0;
        }
        */
        
        public smAdminSubjectAddHour( int _hours)
        {
            InitializeComponent();
            //this.numberHours = _hours;
            this.nud.Value = _hours;
        }
         

        private void button1_Click(object sender, EventArgs e)
        {
            numberHours = (int)nud.Value;
            this.Close();
        }
    }
}
